If not, is it possible to simulate one concisely using other language constructs?
Does Python have a ternary conditional operator?
2187
11-May-2015
Anonymous User
11-May-2015a if test else b
Official documentation: